import request from '@/utils/request'

// 查询保安员证信息列表
export function listGunSecurity(query) {
  return request({
    url: '/service/gunSecurity/list',
    method: 'get',
    params: query
  })
}

// 查询离职保安信息
export function listQuitSecurity(query) {  
  return request({    
    url: '/service/gunSecurity/quit/list',    
    method: 'get',    
    params: query  
  })
}

// 查询保安员证信息详细
export function getGunSecurity(id) {
  return request({
    url: '/service/gunSecurity/' + id,
    method: 'get'
  })
}

// 新增保安员证信息
export function addGunSecurity(data) {
  return request({
    url: '/service/gunSecurity',
    method: 'post',
    data: data
  })
}

// 修改保安员证信息
export function updateGunSecurity(data) {
  return request({
    url: '/service/gunSecurity',
    method: 'put',
    data: data
  })
}

// 删除保安员证信息
export function delGunSecurity(id) {
  return request({
    url: '/service/gunSecurity/' + id,
    method: 'delete'
  })
}
